#!/usr/bin/python3
# -*- coding: UTF-8 -*-

# list = [1, '23', 22221, 1 + 2j]
#
# print(list)
#
# print(list[0])
#
# print(list[1:3])
#
# list[0] = '2132'
#
# print(list)
#
# del list[0]
#
# print(list)
#
# print(len(list))
#
# print(list * 2)
#
# print(list + list)
#
# print('23' in list)
#
# for x in list:
#     print(x, end='ewff')

# print(max(list))


tuple = (1, 2, 3, 4, '123')

print(list(tuple))

str = '123,1232 , ,'

myList = list(str)
print(list(str))
myList.append('aef')
print(myList)

print(myList.count('1'))
myList.extend([1, 2, 3])

print(myList)

list2 = list(range(10))
print(list2)

list3 = ['good', 'bad', 'good', 'hao']
print(list3.count('good'))
list3.pop(-1)
print(list3)

list3.insert(-2, 'hao')
print(list3)

list3.append('hao')
print(list3)

list3.reverse()
print(list3)

list3.sort()
print(list3)
